#define _CRT_SECURE_NO_WARNINGS


int is_leap_year(int year)
{
	return ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0));
}
int search_time(int year, int month)
{
	int arr_day[] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };
	if (is_leap_year(year))
		arr_day[2] += 1;
	return arr_day[month];
}